﻿using Microsoft.Phone.Info;
using System;

namespace KouDai.Phone.Helper
{
    public static class StatisticsHelper
    {
        //厂商
        public static string Brand = DeviceStatus.DeviceManufacturer;
        //设备
        public static string Mid = DeviceStatus.DeviceName;
        //分辨率宽度
        public static string W = "480";
        //分辨率高度
        public static string H = "800";
        //设备唯一标识，base64减少字符串位数同时保证唯一
        //代替imei/imsi
        public static byte[] UniqueIdB = (byte[])DeviceExtendedProperties.GetValue("DeviceUniqueId");
        public static String UniqueIdS = Convert.ToBase64String(UniqueIdB);
        public static string UDID;
        //Platform
        public static string Platform = "wp7";
        //程序版本号
        public static string Version = AppManifest.Version;
        //OS
        public static string OS;
        //Build
        public static string Build = "1000X";
        //Channel
        public static string Channel = DateTime.Today.ToString("yyyyMMdd");
    }
}
